package com.edmendst.xmall.service;

import com.alipay.api.AlipayApiException;
import com.edmendst.xmall.dto.CallBackPayInFo;
import org.springframework.http.ResponseEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * Creat by mjz
 */
public interface PayService {
    //订单支付
    ResponseEntity<String> payOrder(String orderId, BigDecimal orderTotalAmount, String userName) throws AlipayApiException;

    //支付回调
    String callBackPay(Map<String, String> params, CallBackPayInFo callBackPayInFo) throws AlipayApiException;
}
